package com.lftea.service.impl;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;

import com.lftea.dao.ILoginDAO;
import com.lftea.service.ILoginService;

@Service("loginServiceImpl")
@RemotingDestination
public class LoginServiceImpl implements ILoginService {

	private Logger logger = Logger.getLogger(this.getClass().getName());
	
	@Resource(name = "loginDAOImpl")
	private ILoginDAO loginDAOImpl;

	@Override
	@RemotingInclude
	public boolean checkLogin(String username, String password) {
		logger.debug(loginDAOImpl.checkLogin(username, password));
		return loginDAOImpl.checkLogin(username, password);
	}

}
